#pragma once

#ifndef GWINDOW_H
#define GWINDOW_H

#include "PhysicalObject.h"
#include <SFML/Audio.hpp>

class GWindow :
	public PhysicalObject
{
public:
	GWindow(GameState *gamestate);
	~GWindow(void);

	virtual void draw();
	virtual void update(double dt);

	virtual void beginContact(b2Contact *contact);

private:
	bool m_collided;

	int m_frame;

	int m_state;
	int m_level;

	Texture *m_sprite[2];

	SoundBuffer m_crashSoundBuffer;
	Sound m_crashSound;
};

#endif
